﻿@model WebSite.Models.TrainingPageVM    

@{
    WebSite.Common.Models.ViewModels.CourseGroupVM group = Model.GetSelected().Group;
}

@section Scripts
{
    @Styles.Render("~/Content/themes/base/css")
    @Styles.Render("~/Content/category.css")
    <script type="text/javascript" src="~/Scripts/categories.js"></script>    
}

@section SEOContent {
    <title>@group.PageTitle</title>
    <meta name="description" content="@group.Description"/>
    <meta name="keywords"    content="@group.KeyWords" />
    <meta name="robots"      content="@group.Robots">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
}

<h5 class="nav">
    <a href="@Url.Action("Index","Home")">Главная страница</a><span>::</span><a href="@Url.Action("Index","Training")">Обучениe</a><span>::</span><a href="@Url.Action("Category",new {name=group.RouteName})">@group.BreadCrumb</a>
</h5>
<div class="minPrice">
    Стоимость обучения от @group.MinCoursePrice грн/месяц
</div>
<div class="coursesShortList">
    @foreach(WebSite.Common.Models.ViewModels.CourseVM a in group.Courses)
    {
        if (a.Order >= 0)
        { 
            <a class="backBtn" href="/Training/Course/@a.Route">@a.CourseName</a>
        }
    }
</div>
<h1>@group.TitleH1</h1>
@Html.Partial("CategoriesVerticalFilter",Model)

@if (!String.IsNullOrWhiteSpace(group.CustomPageHtml))
{
    @Html.Raw(group.CustomPageHtml)
}
else
{ 
    if(!String.IsNullOrEmpty(group.ImagePath))
    {
        <div class="thumb preview">
            <img src="@group.ImagePath" width="670" alt="Курсы IT специалистов Hello World в Харькове">
        </div>
    }
    <div id="projects">
        <h3>Цели</h3>
        @Html.Raw(group.GoalsMarkup)
        <h3>Методы</h3>
        @Html.Raw(group.MethodMarkup)
        <h3>Решения</h3>
        @Html.Raw(group.SolutionsMarkup)
    </div>
}
<div class="clear"></div>
    